package com.loong.common.executor;

import com.loong.common.function.CommonExecutor;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class TransactionalExecutor {

    @Transactional
    public void async(CommonExecutor executor){
        executor.execute();
    }
}
